package com.weds.edpf.core.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.weds.core.base.BaseEntity;
import io.swagger.annotations.ApiModelProperty;

import javax.validation.constraints.Size;
import java.io.Serializable;
import java.util.Date;

public class WxUpdateuserLog extends BaseEntity implements Serializable {
    /**
     *
     *
     * @mbg.generated Thu Jun 04 16:20:59 CST 2020
     */
    @ApiModelProperty(required = true, dataType = "string", example = "test", value = "")
    private Long xh;

    /**
     *
     *
     * @mbg.generated Thu Jun 04 16:20:59 CST 2020
     */
    @Size(max = 4000)
    @ApiModelProperty(required = true, dataType = "string", example = "test", value = "")
    private String userserials;

    /**
     *
     *
     * @mbg.generated Thu Jun 04 16:20:59 CST 2020
     */
    @Size(max = 100)
    @ApiModelProperty(required = true, dataType = "string", example = "test", value = "")
    private String userSerial;

    /**
     *
     *
     * @mbg.generated Thu Jun 04 16:20:59 CST 2020
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @ApiModelProperty(required = true, dataType = "string", example = "2020-06-04 16:20:59", value = "")
    private Date logSj;

    /**
     *
     *
     * @mbg.generated Thu Jun 04 16:20:59 CST 2020
     */
    @Size(max = 100)
    @ApiModelProperty(required = true, dataType = "string", example = "test", value = "")
    private String logIp;

    /**
     *
     *
     * @mbg.generated Thu Jun 04 16:20:59 CST 2020
     */
    @Size(max = 100)
    @ApiModelProperty(required = true, dataType = "string", example = "test", value = "")
    private String glyNo;

    /**
     *
     *
     * @mbg.generated Thu Jun 04 16:20:59 CST 2020
     */
    @Size(max = 100)
    @ApiModelProperty(required = true, dataType = "string", example = "test", value = "")
    private String result;

    /**
     *
     * @mbg.generated Thu Jun 04 16:20:59 CST 2020
     */
    private static final long serialVersionUID = 1L;

    private String keys;

    /**
     * This method returns the value of the database column wx_updateuser_log.xh
     *
     * @return the value of wx_updateuser_log.xh
     *
     * @mbg.generated Thu Jun 04 16:20:59 CST 2020
     */
    public Long getXh() {
        return xh;
    }

    /**
     *
     * @mbg.generated Thu Jun 04 16:20:59 CST 2020
     */
    public WxUpdateuserLog withXh(Long xh) {
        this.setXh(xh);
        return this;
    }

    /**
     * This method sets the value of the database column wx_updateuser_log.xh
     *
     * @param xh the value for wx_updateuser_log.xh
     *
     * @mbg.generated Thu Jun 04 16:20:59 CST 2020
     */
    public void setXh(Long xh) {
        this.xh = xh;
    }

    /**
     * This method returns the value of the database column wx_updateuser_log.userserials
     *
     * @return the value of wx_updateuser_log.userserials
     *
     * @mbg.generated Thu Jun 04 16:20:59 CST 2020
     */
    public String getUserserials() {
        return userserials;
    }

    /**
     *
     * @mbg.generated Thu Jun 04 16:20:59 CST 2020
     */
    public WxUpdateuserLog withUserserials(String userserials) {
        this.setUserserials(userserials);
        return this;
    }

    /**
     * This method sets the value of the database column wx_updateuser_log.userserials
     *
     * @param userserials the value for wx_updateuser_log.userserials
     *
     * @mbg.generated Thu Jun 04 16:20:59 CST 2020
     */
    public void setUserserials(String userserials) {
        this.userserials = userserials;
    }

    /**
     * This method returns the value of the database column wx_updateuser_log.user_serial
     *
     * @return the value of wx_updateuser_log.user_serial
     *
     * @mbg.generated Thu Jun 04 16:20:59 CST 2020
     */
    public String getUserSerial() {
        return userSerial;
    }

    /**
     *
     * @mbg.generated Thu Jun 04 16:20:59 CST 2020
     */
    public WxUpdateuserLog withUserSerial(String userSerial) {
        this.setUserSerial(userSerial);
        return this;
    }

    /**
     * This method sets the value of the database column wx_updateuser_log.user_serial
     *
     * @param userSerial the value for wx_updateuser_log.user_serial
     *
     * @mbg.generated Thu Jun 04 16:20:59 CST 2020
     */
    public void setUserSerial(String userSerial) {
        this.userSerial = userSerial;
    }

    /**
     * This method returns the value of the database column wx_updateuser_log.log_sj
     *
     * @return the value of wx_updateuser_log.log_sj
     *
     * @mbg.generated Thu Jun 04 16:20:59 CST 2020
     */
    public Date getLogSj() {
        return logSj;
    }

    /**
     *
     * @mbg.generated Thu Jun 04 16:20:59 CST 2020
     */
    public WxUpdateuserLog withLogSj(Date logSj) {
        this.setLogSj(logSj);
        return this;
    }

    /**
     * This method sets the value of the database column wx_updateuser_log.log_sj
     *
     * @param logSj the value for wx_updateuser_log.log_sj
     *
     * @mbg.generated Thu Jun 04 16:20:59 CST 2020
     */
    public void setLogSj(Date logSj) {
        this.logSj = logSj;
    }

    /**
     * This method returns the value of the database column wx_updateuser_log.log_ip
     *
     * @return the value of wx_updateuser_log.log_ip
     *
     * @mbg.generated Thu Jun 04 16:20:59 CST 2020
     */
    public String getLogIp() {
        return logIp;
    }

    /**
     *
     * @mbg.generated Thu Jun 04 16:20:59 CST 2020
     */
    public WxUpdateuserLog withLogIp(String logIp) {
        this.setLogIp(logIp);
        return this;
    }

    /**
     * This method sets the value of the database column wx_updateuser_log.log_ip
     *
     * @param logIp the value for wx_updateuser_log.log_ip
     *
     * @mbg.generated Thu Jun 04 16:20:59 CST 2020
     */
    public void setLogIp(String logIp) {
        this.logIp = logIp;
    }

    /**
     * This method returns the value of the database column wx_updateuser_log.gly_no
     *
     * @return the value of wx_updateuser_log.gly_no
     *
     * @mbg.generated Thu Jun 04 16:20:59 CST 2020
     */
    public String getGlyNo() {
        return glyNo;
    }

    /**
     *
     * @mbg.generated Thu Jun 04 16:20:59 CST 2020
     */
    public WxUpdateuserLog withGlyNo(String glyNo) {
        this.setGlyNo(glyNo);
        return this;
    }

    /**
     * This method sets the value of the database column wx_updateuser_log.gly_no
     *
     * @param glyNo the value for wx_updateuser_log.gly_no
     *
     * @mbg.generated Thu Jun 04 16:20:59 CST 2020
     */
    public void setGlyNo(String glyNo) {
        this.glyNo = glyNo;
    }

    /**
     * This method returns the value of the database column wx_updateuser_log.result
     *
     * @return the value of wx_updateuser_log.result
     *
     * @mbg.generated Thu Jun 04 16:20:59 CST 2020
     */
    public String getResult() {
        return result;
    }

    /**
     *
     * @mbg.generated Thu Jun 04 16:20:59 CST 2020
     */
    public WxUpdateuserLog withResult(String result) {
        this.setResult(result);
        return this;
    }

    /**
     * This method sets the value of the database column wx_updateuser_log.result
     *
     * @param result the value for wx_updateuser_log.result
     *
     * @mbg.generated Thu Jun 04 16:20:59 CST 2020
     */
    public void setResult(String result) {
        this.result = result;
    }

    public String getKeys() {
        return keys;
    }

    public void setKeys(String keys) {
        this.keys = keys;
    }

    /**
     *
     * @mbg.generated Thu Jun 04 16:20:59 CST 2020
     */
    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", xh=").append(xh);
        sb.append(", userserials=").append(userserials);
        sb.append(", userSerial=").append(userSerial);
        sb.append(", logSj=").append(logSj);
        sb.append(", logIp=").append(logIp);
        sb.append(", glyNo=").append(glyNo);
        sb.append(", result=").append(result);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append(", keys=").append(keys);
        sb.append("]");
        return sb.toString();
    }

    /**
     *
     * @mbg.generated Thu Jun 04 16:20:59 CST 2020
     */
    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        WxUpdateuserLog other = (WxUpdateuserLog) that;
        return (this.getXh() == null ? other.getXh() == null : this.getXh().equals(other.getXh()))
            && (this.getUserserials() == null ? other.getUserserials() == null : this.getUserserials().equals(other.getUserserials()))
            && (this.getUserSerial() == null ? other.getUserSerial() == null : this.getUserSerial().equals(other.getUserSerial()))
            && (this.getLogSj() == null ? other.getLogSj() == null : this.getLogSj().equals(other.getLogSj()))
            && (this.getLogIp() == null ? other.getLogIp() == null : this.getLogIp().equals(other.getLogIp()))
            && (this.getGlyNo() == null ? other.getGlyNo() == null : this.getGlyNo().equals(other.getGlyNo()))
            && (this.getResult() == null ? other.getResult() == null : this.getResult().equals(other.getResult()));
    }

    /**
     *
     * @mbg.generated Thu Jun 04 16:20:59 CST 2020
     */
    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getXh() == null) ? 0 : getXh().hashCode());
        result = prime * result + ((getUserserials() == null) ? 0 : getUserserials().hashCode());
        result = prime * result + ((getUserSerial() == null) ? 0 : getUserSerial().hashCode());
        result = prime * result + ((getLogSj() == null) ? 0 : getLogSj().hashCode());
        result = prime * result + ((getLogIp() == null) ? 0 : getLogIp().hashCode());
        result = prime * result + ((getGlyNo() == null) ? 0 : getGlyNo().hashCode());
        result = prime * result + ((getResult() == null) ? 0 : getResult().hashCode());
        return result;
    }
}